package com.yunhe.option.domain.data;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.NodeEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 季节电价详情对象
 * @desc 季节电价详情对象定义
 * @author liuronglei
 */
@ApiModel(value = "SeasonPriceDetail", description = "季节电价详情")
@NodeEntity
public class SeasonPriceDetail implements Serializable {
    @ApiModelProperty(value = "季节电价详情ID")
    @GraphId
    private Long id;
    @ApiModelProperty(value = "电价费率")
    private Long priceRateCode;
    @ApiModelProperty(value = "价格")
    private Double price;
    @ApiModelProperty(value = "开始时间", example = "00:00:00")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    @ApiModelProperty(value = "结束时间", example = "00:00:00")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPriceRateCode() {
        return priceRateCode;
    }

    public void setPriceRateCode(Long priceRateCode) {
        this.priceRateCode = priceRateCode;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
}
